#include "raylib.h"
#include <iostream>
class Player{
public:
Vector2 position;
float velocityY;
float gravity;
};
class Pipe{
public:
float x;
float gapY;
float gapHeight;
float width = 60;
void update(){
x -= 3;
}
void draw(){
DrawRectangle(
x,
0,
width,
gapY - gapHeight / 2,
BLACK
);
};
// class Pipe_Spawner{
// public:
// void Spawn_Pipe(const Pipe& pipe){
// DrawRectangle (pipe.x, 0, pipe.width, pipe.gapY - pipe.gapHeight / 2, BLACK);
// DrawRectangle (pipe.x, pipe.gapY + pipe.gapHeight / 2, pipe.width, 600 - (pipe.gapHeight / 2 + pipe.gapY), BLACK);
// }
// }spawner;
int main (){
// std::cout << 111;
Player player = {{400, 100}, 0, 0.3};
Pipe pipe = {800, 300, 180};
InitWindow(800, 600, "window");
SetTargetFPS(60);
while (!WindowShouldClose()){
player.update();
}